package entity;

import java.io.Serializable;

/**
 * * 用户数据字段:
 *  * id
 *  * 昵称
 *  * 账号,密码
 *  * 邮箱
 *  * 权限等级
 */
public class User implements Serializable {

    private String username;

    private String password;

    private String account_name;

    private String email;

    private String security_question;

    private String[] friends_List;

    private String[] group_chat;

    private int Money;

    private int isOnline=0;

    public User(String username, String password, String account_name, String email, String security_question) {
        this.username = username;
        this.password = password;
        this.account_name = account_name;
        this.email = email;
        this.security_question = security_question;
    }
    public User(){}
    public User(String userNameText, String passWordText) {
        this.username = userNameText;
        this.password = passWordText;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAccount_name() {
        return account_name;
    }

    public void setAccount_name(String account_name) {
        this.account_name = account_name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSecurity_question() {
        return security_question;
    }

    public void setSecurity_question(String security_question) {
        this.security_question = security_question;
    }

    public String[] getFriends_List() {
        return friends_List;
    }

    public void setFriends_List(String[] friends_List) {
        this.friends_List = friends_List;
    }

    public String[] getGroup_chat() {
        return group_chat;
    }

    public void setGroup_chat(String[] group_chat) {
        this.group_chat = group_chat;
    }

    public int getMoney() {
        return Money;
    }

    public void setMoney(int money) {
        Money = money;
    }

    public int isOnline() {
        return isOnline;
    }
    public void setOnline(int online) {
        isOnline = online;
    }
}
